﻿@using InnovaApp.Layers.ResourcesLayer.Properties
@model InnovaApp.Portals.MVC4Portal.Models.ViewModels.LayoutViewModels.SecurityViewModels.Register_ViewModel
@{
    Layout = Model._CurrentSiteLayout;   
}
@using (
    Ajax.BeginForm
    (
        actionName: "",
        routeValues: null,
        ajaxOptions: new AjaxOptions() { HttpMethod = "Post", OnSuccess = "$.fn.MainAjaxSuccess", OnFailure = "$.fn.MainAjaxFailure" },
        htmlAttributes: new { @class = "logonForm" }
    )
)
{
    <fieldset class="centerMargin25 ui-widget ui-widget-content ui-corner-all padding15">
        <legend>Registration Form</legend>
        @Html.EditorFor(m => m.Contact)
        <ol>
            <li>
                @Html.LabelFor(m => m.UserToRegister.Username)
                @Html.TextBoxFor(m => m.UserToRegister.Username)
                @Html.ValidationMessageFor(m => m.UserToRegister.Username)
            </li>
            <li>
                @Html.LabelFor(m => m.UserToRegister.Email)
                @Html.TextBoxFor(m => m.UserToRegister.Email)
                @Html.ValidationMessageFor(m => m.UserToRegister.Email)
            </li>
            <li>
                @Html.LabelFor(m => m.UserToRegister.Password)
                @Html.PasswordFor(m => m.UserToRegister.Password)
                @Html.ValidationMessageFor(m => m.UserToRegister.Password)
            </li>
            <li>
                @Html.LabelFor(m => m.UserToRegister.ConfirmPassword)
                @Html.PasswordFor(m => m.UserToRegister.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.UserToRegister.ConfirmPassword)
            </li>
        </ol>
        <input type="submit" value="Register" id="cmdSubmit" />
    </fieldset>
}
